package com.iwuyc.tools.commons.structs.basic;

import lombok.Data;
import lombok.ToString;

/**
 * 用于存储键-值对的场景，不支持序列化
 *
 * @param <K> key的实际类型
 * @param <V> val的实际类型
 */
@Data
@ToString
public class UnserializablePair<K, V> implements Pair<K, V> {
    private final K key;
    private final V val;

    UnserializablePair(K key, V val) {
        this.key = key;
        this.val = val;
    }

}
